package com.koron.system.configSettings.post.mapper;

import com.koron.bean.system.post.po.PostPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (Post)表数据库访问层
 *
 * @author zhouj
 * @since 2022-01-10 09:24:26
 */
@Mapper
@Repository
public interface PostMapper {

    int insertOrUpdate(PostPo post);

    int insertOrUpdateBatch(@Param("list") List<PostPo> postList);

    int insert(PostPo post);

    int insertBatch(@Param("list") List<PostPo> postList);

    int update(PostPo post);

    int deleteById(String id);

    PostPo queryById(String id);

    List<PostPo> queryList(PostPo post);

}